#{extends 'main.html' /}
#{set title:'MyNewEv' /}

<div id='cssmenu'>
<ul>
   <li><a href='/home'><span>Home</span></a></li>
   <li><a href='/category'><span>Create event</span></a></li>
   <li><a href='/myevents'><span>My events</span></a></li>
   <li><a href='/registeredevents'><span>Registered events</span></a></li>
</ul>
</div>
		<br/>
		<center>
		<nav-header>
			<a href="/trips"> Trips </a>
			<a href="/sports"> Sport </a>
			<a href="/culture"> Culture </a>
			<a href="/entertainment"> Entertainment </a>
			<a href="/night_life"> Night life </a>
			<a href="/learning"> Learning </a>
		</nav-header>
		</center>
		<div class="container">
			<!--<div id="adds">adds
			</div>-->

<h2>Manage Events:</h2>
<div class="container">
<table class="table table.hover">
    <thead>
        <tr>
            <th>Author</th>
            <th>Title</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    #{list items:events, as: 'event'}
            <tr>
        	<td>${event.author}</td>
        	<td><a href='@{AdministrationManager.detailedeventAdmin(event.id)}'>${event.title}</a></td>          
        	<td><a href='@{EventManager.deleteEvent(event.id)}'> delete</a></td>
            
    	</tr>
	#{/list}
	
</tbody>
</table>
</div>

</div>